<template>
    <div id="app">
    <ul>
      <li>
        <router-link to="/">Home</router-link>
      </li>
      <li>
        <router-link to="/about">About</router-link>
      </li>
      <li>
        <router-link to="/posts">Posts</router-link>
      </li>
    </ul>

    <!-- 路由出口 -->
    <router-view/>
  </div>
</template>
<script>
export default {
  data(){
    return{
      message:'Hello World'
    }
  },
  methods:{
    onClick(){
      console.log(this.message);
    }
  }
}
</script>
